﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

/// <summary>
/// Summary description for DataProvider
/// </summary>
public partial class DataProvider : System.Web.UI.Page
{
    public void LoadControls(Control DContent, string strIDControl, string strPathControl)
    {
        Control control = (Control)this.LoadControl(strPathControl);
        control.ID = strIDControl;
        if (control != null)
            DContent.Controls.Add(control);
        DContent.Visible = true;
    }
}